<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <title>吉鸿商城</title>
        <meta http-equiv = "Content-Type" content = "text/html; charset=utf-8"/>
        <link href = "/ecp/resources/css/default/base.css" rel = "stylesheet" type = "text/css"/>
        <script type="text/javascript" src="/ecp/resources/js/jquery-1.8.1.js"></script>
        <script type="text/javascript" src="/ecp/resources/js/tydic.js"></script>
        <script type = "text/javascript">
         jQuery(function($) {
			dicPath = '/ecp/resources/css/default/images/';
		});
        
            jQuery(function($) {
            var cfg = {
					url : '/ecp/backstage/cust/queryUser.do',//分页请求url设置
					head : [//表头设置
					{dis:'选择' , name:'id',width:'2%', align:'left', checked : true},
					{dis:'账户', name:'account', width:'8%', align:'center', sort : {style : false},
					link : {fun : function(data) {window.location.href="toViewcust.do?menuId=${param.menuId}&account="+data['account'];}}},
					{dis:'姓名', name:'name', width:'8%', align:'center', sort : {style : false}},
					{dis:'昵称', name:'abbrname', width:'8%', align:'right'},
					{dis:'证件号码', name:'cardno', width:'8%', align:'right'},
					{dis:'手机号码', name:'mobile', width:'8%', align:'right'},
					{dis:'固定电话', name:'phone', width:'8%', align:'right'},
					{dis:'操作', name:'操作', width:'15%', align:'center'}
					],
					action : [//表格操作设置(修改,删除)
						{name:'修改', fun:function(m){alert('upd:' + m.name);}, show:function(m){if (m) return true;}},//表格[修改设置 | 权限设置(显示,需要有返回值)]
						{name:'删除', fun:function(m){alert('del:' + m.name);}, disable:function(m){if (m.name) return true;}},//表格[删除设置 | 权限设置(置灰,需要有返回值)]
						]
					}
            
                $('#button2').click(function() {
                     var param = $("#paramForm").serialize()+"&"+new Date() ;
                     cfg.url = '/ecp/backstage/cust/queryUser.do?'+param;
                     var table = $('#datatable').dicTable(cfg);
                });

                var table = $('#datatable').dicTable(cfg);

                window.parent.layout.left = true;
                window.parent.layout.bottom = true;
                window.parent.layout.draw();
                window.parent.layoutLeft.$('#t').text();
            });
            
		
        </script>
    </head>

    <body>
        <table width = "100%" border = "0" cellspacing = "0" cellpadding = "0" class = "Treebg">
            <tr>
                <td class = "ico5"></td>
                <td>&nbsp;<a href = "#">客户管理</a> &gt; <span class = "c6">客户查询</span>
                </td>
                <td class = "ico0">&nbsp;</td>
            </tr>
        </table>
        <table border = "0" cellspacing = "0" cellpadding = "0">
            <tr>
                <td width = "40"><img src = "/ecp/resources/css/default/images/space.gif" class = "img-search"/></td>
                <td>
                    <form action="" id="paramForm" accept-charset="UTF-8">
                    <table border = "0" cellpadding = "0" cellspacing = "0" class = "searchtab fl">
                        <tbody>
                        <tr>
                            <th>账户：</th>
                            <td><input name = "account" type = "text" class = "input90"/></td>
                            <th>姓名：</th>
                            <td><input name = "name" type = "text" class = "input90"/></td>
                            <th>条件值</th>
                            <td><select name = "select2" size = "1" class = "input120">
                                <option value="">--请选择--</option>
                                <option value="1">状态值1</option>
                                <option value="2">状态值2</option>
                            </select></td>
                            <td>
                                <input type = "button" name = "button2" id = "button2" value = "查询" class = "btn1"/>
                            </td>
                            <td><input type = "submit" name = "button3" id = "button" value = "" class = "btn4"/>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    </form>
                </td>
            </tr>
        </table>
        <div class = "p10">
            <table width = "100%" border = "0" cellspacing = "0" cellpadding = "0">
                <tr>
                    <td class = "ico21">&nbsp;</td>
                    <td class = "tb">用户列表</td>
                    <td class = "ico4">&nbsp;</td>
                </tr>
            </table>
            <table width = "100%" border = "0" cellspacing = "0" cellpadding = "0">
                <tr>
                    <td class = "dataGridtool">
                        <table border = "0" cellspacing = "0" cellpadding = "0" class = "fr">
                            <tr>
                                <td class = "tools1"><a href = "#">新增</a></td>
                                <td class = "tools2"><a href = "#">修改</a></td>
                                <td class = "tools3"><a href = "#">删除</a></td>
                                <td class = "tools4"><a href = "#">导出</a></td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            <div id="datatable"></div>
        </div>
    </body>
</html>